package day2;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestAutoWire {
public static void main(String[] args) {
	ApplicationContext ac=new ClassPathXmlApplicationContext("day2-2.xml");
	People p1=ac.getBean("p1",People.class);
	System.out.println(p1);	
	People p2=ac.getBean("p2",People.class);
	System.out.println(p2);
	People p3=ac.getBean("p3",People.class);
	System.out.println(p3);
}
}
